package com.example.lanouhn.bantangapp.activities.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.example.lanouhn.bantangapp.R;

/**
 * Created by lanouhn on 16/7/22.
 */
public class PublishCommodityActivity extends Activity {
    private ImageView back;//返回控件
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initview();
        initLinstener();
    }
     //找到控件
    private void initview() {
        setContentView(R.layout.publish_commodity_activity);
        back= (ImageView) findViewById(R.id.back);
    }
    //点击事件
    private void initLinstener() {
        //点击返回
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent it = new Intent(PublishCommodityActivity.this,PublishActivity.class);
                startActivity(it);
                finish();
            }
        });
    }
}
